import request from '@/util/request'

// news list
export function list(data) {
  return request({
    url: '/api/task/list',
    method: 'post',
    data
  })
}

// news view
export function view(data) {
  return request({
    url: '/api/task/view',
    method: 'post',
    data
  })
}

export function check(data) {
  return request({
    url: '/api/task/check',
    method: 'post',
    data
  })
}

export function save(data) {
  return request({
    url: '/api/task/save',
    method: 'post',
    data
  })
}

// -----------------------------------------------

// 任务列表
export function getOrderList(data) {
  return request({
    url: '/api/task/get-order-list',
    method: 'post',
    data
  })
}

// 上传图列表
export function getUploadList(data) {
  return request({
    url: '/api/task/get-upload-list',
    method: 'post',
    data
  })
}

// 删除图片
export function removeUpload(data) {
  return request({
    url: '/api/task/remove-upload',
    method: 'post',
    data
  })
}

// 申请审核
export function checkUpload(data) {
  return request({
    url: '/api/task/check-upload',
    method: 'post',
    data
  })
}
